home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: EOF error
- Date: 2 Feb 1996 18:00:18 GMT
- Organization: OpenVision
- Message-ID: <4etjfi$mdv@spanky.pls.ov.com>
- References: <4eo12b$om3@newsbf02.news.aol.com>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article om3@newsbf02.news.aol.com, polver@aol.com (Polver) writes:
- >Why doesn't the following work.
- >I'm using a unix system at school.
- >
- >#include <stdio.h>
- >
- >main()
- >{
- > int c;
- >
- > c = getchar();
- > while (c != EOF) {
- > putchar(c);
- > c = getchar(c);
- ^
- Except for the above character, the program compiled and ran
- on my SunOS system, even using the ANSI compiler.
-
- Fletcher.Glenn@ov.com
- > }
- >}
- >
- >I keep getting an error about EOF undefined ar not scalar or something.
- >You can reply here or at pmarti01@hills.ccsf.cc.ca.us
- >Thanks.
-
-
-
-
-
-